﻿using System;
using System.Text;

namespace JieBooLaw.Common.Web
{
    using JieBooLaw.Common.Model;

    public abstract class BaseWebPage : System.Web.UI.Page
    {
        protected ValidateObject ValidObj { get; set; }

        protected virtual void ValidatePage()
        {
            if (this.ValidObj == null) this.ValidObj = new ValidateObject();
        }

        protected void Redirect(string Url)
        {
            this.Response.Redirect(Url);
        }

        protected void Redirect(string Url, bool endResponse)
        {
            this.Response.Redirect(Url, endResponse);
        }
    }
}
